package com.jxtc.enterprise.admin.vo;

import com.jxtc.enterprise.common.entity.CompanyDeliveryInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Schema(description = "Admin 端公司管理页面配送相关信息")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class AdminCompanyDeliveryInfoVO {
    @Schema(description = "开始时间", example = "00:00")
    private String startTime;

    @Schema(description = "下单/取消下单的截至时间", example = "11:15")
    private String endTime;

    @Schema(description = "送达时间", example = "11:55")
    private String arrivalTime;

    @Schema(description = "批量打印时间", example = "11:20")
    private String batchPrintTime;

    @Schema(description = "是否一单一打印", defaultValue = "false")
    private Boolean singlePrint;

    public AdminCompanyDeliveryInfoVO(CompanyDeliveryInfo deliveryInfo) {
        this.startTime = deliveryInfo.getStartTime();
        this.endTime = deliveryInfo.getEndTime();
        this.arrivalTime = deliveryInfo.getArrivalTime();
        this.batchPrintTime = deliveryInfo.getBatchPrintTime();
        this.singlePrint = deliveryInfo.getSinglePrint();
    }
}
